package com.leen.news.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author 
 * 等级任务设置
 */
@Data
@ToString(callSuper = true)
@ApiModel(value = "等级任务设置")
@TableName(value = "yx_system_user_task")
public class YxSystemUserTask implements Serializable {
    @ApiModelProperty(value = "等级任务设置ID",example = "0")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    @TableField(value = "name")
    private String name;

    /**
     * 配置原名
     */
    @ApiModelProperty(value = "配置原名")
    @TableField(value = "real_name")
    private String realName;

    /**
     * 任务类型
     */
    @ApiModelProperty(value = "任务类型")
    @TableField(value = "task_type")
    private String taskType;

    /**
     * 限定数
     */
    @ApiModelProperty(value = "限定数")
    @TableField(value = "number")
    private Integer number;

    /**
     * 等级id
     */
    @ApiModelProperty(value = "等级id")
    @TableField(value = "level_id")
    private Integer levelId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否显示
     */
    @ApiModelProperty(value = "是否显示")
    @TableField(value = "is_show")
    private Boolean isShow;

    /**
     * 是否务必达成任务,1务必达成,0=满足其一
     */
    @ApiModelProperty(value = "是否务必达成任务")
    @TableField(value = "is_must")
    private Boolean isMust;

    /**
     * 任务说明
     */
    @ApiModelProperty(value = "任务说明")
    @TableField(value = "illustrate")
    private String illustrate;

    /**
     * 新增时间
     */
    @ApiModelProperty(value = "新增时间")
    @TableField(value = "create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_del")
    private Boolean isDel;

    private static final long serialVersionUID = 1L;
}